package org.jeecg.modules.report.service;


import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.report.vo.BaseParkInfo;
import org.jeecg.modules.report.vo.CarStatisticsGather;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Description: 车辆模块
 * @Author: liur
 * @Date:   2019-08-16
 * @Version: V1.0
 */
@FeignClient("CIM-CAR")
public interface ICarDataService {

	/**
	 * 获取小区车场基础信息 - 车位数  空位数等
	 * @param projectId
	 * @param tenantId
	 * @return
	 */
	@RequestMapping(value = "/api/car/getBaseParkInfo",method = RequestMethod.POST)
	Result<List<BaseParkInfo>> getBaseParkInfo(@RequestParam("projectId") String projectId, @RequestHeader("tenantId") String tenantId);

	/**
	 * 获取小区车场收费信息
	 * @param projectId
	 * @param year
	 * @param tenantId
	 * @return
	 */
	@RequestMapping(value = "/api/car/getParkFeeStatics",method = RequestMethod.POST)
	Result<List<CarStatisticsGather>> getParkFeeStatics(@RequestParam("projectId") String projectId, @RequestParam("year") String year, @RequestHeader("tenantId") String tenantId);
}
